<?php

namespace Admin\Models\stats;

use Admin\Models\BaseModel;

class XhstatsTaskuser extends BaseModel
{

    /**
     *
     * @var integer
     * @Primary
     * @Identity
     * @Column(type="integer", length=11, nullable=false)
     */
    public $iTaskId;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iUserType;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iSchoolId;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iStatsNum;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iCompleteNum;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $mInputInfo;

    /**
     *
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $iStatus;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $mRemark;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tStartDate;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tEndDate;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tStatsTime;

    /**
     *
     * @var integer
     * @Column(type="integer", length=20, nullable=true)
     */
    public $iStatsUserId;

    /**
     *
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $bDelete;

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        parent::initialize();
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHStats_TaskUser';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhstatsTaskuser[]|XhstatsTaskuser
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhstatsTaskuser
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
